package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScale;
import com.zmzncs.lmtc.module.promotion.pojo.duration_rule_fee_scale.DurationRuleFeeScaleDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Repository
public interface DurationRuleFeeScaleMapper extends BaseMapper<DurationRuleFeeScale> {

    /**根据停车场id查询时长规则收费标准*/
    List<DurationRuleFeeScaleDTO> getDurationRuleFeeScaleByParkId(String parkId);
    /**查询时长规则收费标准*/
    DurationRuleFeeScaleDTO getDurationRuleFeeScale(@Param("id") Long id, @Param("durationRuleId") Long durationRuleId);

}
